﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace JNPF.Basics.Models.PlatForm.Dtos.Language
{
    public class LanguageCrInput
    {
        /// <summary>
        /// 分类id
        /// </summary>
        [Required(ErrorMessage = "翻译分类不能为空")]
        public string languageTypeId { get; set; }
        /// <summary>
        /// 翻译标记
        /// </summary>
        [Required(ErrorMessage = "翻译标记不能为空")]
        public string signKey { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Required(ErrorMessage = "语言和名称不能为空")]
        public List<TranslateListItem> translateList { get; set; }
    }
    public class TranslateListItem
    {
        /// <summary>
        /// 语言编码
        /// </summary>
        [Required(ErrorMessage = "翻译语言不能为空")]
        public string language { get; set; }
        /// <summary>
        /// 语言名称
        /// </summary>
        [Required(ErrorMessage = "名称不能为空")]
        public string fullName { get; set; }
    }
}
